csslookup: Remove tautological if expression
authorTimm Bäder <mail@baedert.org>
Thu, 22 Aug 2019 10:54:36 +0000 (12:54 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 9 Sep 2019 15:36:24 +0000 (17:36 +0200)
A value is always either set or missing.
This was changed in a1f7c459b75fe47e2abb7e856e6d4a4ad5208cb9, which
removed the ability for partial style computation.

gtk/gtkcsslookup.c

index cc1df1d2f95104e0d595a62a3d9b078d5ab4bce8..b871c8f7a0a2b4d092fad38f94783b9f7f108734 100644 (file)
@@ -111,14 +111,11 @@ _gtk_css_lookup_resolve (GtkCssLookup      *lookup,
 
   for (i = 0; i < GTK_CSS_PROPERTY_N_PROPERTIES; i++)
     {
-      if (lookup->values[i].value ||
-          _gtk_bitmask_get (lookup->missing, i))
-        gtk_css_static_style_compute_value (style,
-                                            provider,
-                                            parent_style,
-                                            i,
-                                            lookup->values[i].value,
-                                            lookup->values[i].section);
-      /* else not a relevant property */
+      gtk_css_static_style_compute_value (style,
+                                          provider,
+                                          parent_style,
+                                          i,
+                                          lookup->values[i].value,
+                                          lookup->values[i].section);
     }
 }